﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Smart.Admin.Domain.Model.Request.Department
{
    public class CreateDepartmentRequest
    {

        /// <summary>
        /// 部门名称
        /// </summary>
        [Required(ErrorMessage = "部门名称必填")]
        public string Name { get; set; }

        /// <summary>
        /// 部门负责人id
        /// </summary>
        [Required(ErrorMessage = "部门负责人必填")]
        public long ManagerId { get; set; }


        /// <summary>
        /// 部门的父级id
        /// </summary>
        [Required(ErrorMessage = "上级部门必填")]
        public long ParentId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }

    public class UpdateDepartmentRequest: CreateDepartmentRequest
    {
        /// <summary>
        /// 部门编号
        /// </summary>
        public long DepartmentId
        {
            get;
            set;
        }
    }
}
